//
//  PPAlbumManager.h
//  pickpic
//
//  Created by Jinxiao on 9/5/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import "PPAlbumModel.h"

#import "PPAlbumElements.h"

#import "PPUploaderFile.h"
@interface PPAlbumManager : NSObject

+ (instancetype)sharedInstance;

- (void)clean;

- (void)synchronize;


- (void)offlineCreateAlbumWithArtworks:(NSArray <PPAbstractArtwork *> *)artworks tags:(NSArray <PPAlbumTagElement *> *)tags title:(NSString *)title description:(NSString *)description order:(NSNumber *)order permission:(NSNumber *)permission privacy:(NSNumber *)privacy privacyUserIDs:(NSArray <NSString *> *)privacyUserIDs coverUUID:(NSString *)coverUUID;

- (void)offlineModifyAlbumWithAlbumUUID:(NSString *)auuid insertedArtworks:(NSArray <PPAbstractArtwork *> *)insertedArtworks modifiedArtworks:(NSArray <PPAbstractArtwork *> *)modifiedArtworks deletedArtworks:(NSArray <PPAbstractArtwork *> *)deletedArtworks tags:(NSArray <PPAlbumTagElement *> *)tags title:(NSString *)title description:(NSString *)description order:(NSNumber *)order permission:(NSNumber *)permission privacy:(NSNumber *)privacy privacyUserIDs:(NSArray <NSString *> *)privacyUserIDs coverUUID:(NSString *)coverUUID;

- (void)offlineDeleteAlbumWithAlbumUUID:(NSString *)auuid;


- (void)uploadEbookPicResults:(NSMutableArray <PPUploaderFile*>*)results completion:(void (^)(NSError *))completion;

- (void)commitOfflineModifiedAlbumWithAlbumUUID:(NSString *)auuid completion:(void (^)(void))completion;


@end
